package com.neusoft.blog.bean;

public class RespBean {
    private  int status;
    private  String msg;
    private  Object object;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public RespBean(int status, String msg, Object object) {
        this.status = status;
        this.msg = msg;
        this.object = object;
    }
    public RespBean(int status, String msg) {
        this.status = status;
        this.msg = msg;

    }
    public RespBean() {

    }

//    public  static  RespBean ok(String msg,Object object){
//        return new RespBean(200,msg,object);
//    }
//    public  static  RespBean error(String msg){
//        return new RespBean(500,msg,null);
//    }
//    public  static  RespBean ok(String msg){
//        return new RespBean(200,msg);
//    }
public  static RespBean ok(int status, String msg, Object object){
    return new RespBean(200,msg,object);
}
    public  static RespBean ok(String msg, Object object){
        return new RespBean(200,msg,object);
    }
    public  static RespBean error(String msg){
        return new RespBean(500,msg,null);
    }
    public  static RespBean ok(String msg){
        return new RespBean(200,msg);
    }
    public  static RespBean error(int status, String msg, Object object){
        return new RespBean(500,msg,object);
    }

    public  static RespBean error(int status,String msg){
        return new RespBean(500,msg,null);
    }
}
